import 'package:flutter/material.dart';
import 'package:mirror/AppStyle.dart';
import 'package:mirror/widget/EmptyWidget.dart';

class FindPage extends StatefulWidget {
  const FindPage({super.key});

  @override
  State<FindPage> createState() => _FindPageState();
}

class _FindPageState extends State<FindPage> {
  List<String> loopList = [
    "公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告",
    "公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告",
    "公告公告公告公告公告公告公告公告公告",
  ];
  final List<String> tabs = ["藏品寄售", "盲盒寄售", "官方公告"];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: DefaultTabController(
        length: 3,
        child: Scaffold(
          body: Column(
            children: [
              Container(
                color: Constant.mainColor,
                child: TabBar(
                  indicatorPadding: const EdgeInsets.symmetric(horizontal: 20),
                  indicatorColor: Colors.white,
                  tabs: List.generate(
                      tabs.length,
                      (index) => Tab(
                            text: tabs[index],
                          )),
                ),
              ),
              const Expanded(
                child: TabBarView(
                  children: [
                    EmptyWidget(),
                    EmptyWidget(),
                    EmptyWidget(),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
